.ranking-page {
    height: 100vh;
    overflow-y: auto;
    /* 修复背景滚动问题 */
    background-image: url('/src/assets/login/phb.png');
    background-size: 100% auto;
    /* 改为 100% 100% 确保完全覆盖 */
    background-repeat: no-repeat;
    background-attachment: local;
    /* 关键：让背景跟随内容滚动 */
    background-position: top center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* 确保有足够的最小高度 */
    min-height: 100vh;
    background-color: #783920;
  }

  .rangk-one{
    width: 100%;
    height: 120px;
    background-image: url(../../assets/phb/phbheader.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: -10px;
  }

  .text-bg{
    width: 150px;
    height: 55px;
    position: absolute;
    right: 20px;
    top: 80px;
  }
  .rangk-one{
    height: 100px;
    width: 100%;
  }

  .text-btn-rangk-s{
    width: 150px;
    height: 50px;
    background-image: url(../../assets/icon/dbxl.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 80px;
    z-index: 99999;
    line-height: 50px;
    font-size: 22px;
    color: #fff;
    left:30%;
  }

  .text-font{
        position: absolute;
    bottom: 20px;
    z-index: 99999;
    font-size: 12px;
    color: #80442c;
    width: 100%;
  }
  
  /* .ranking-page::before {
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background:
      url('/src/assets/icon/fxbjt.png') top no-repeat,
      linear-gradient(to bottom, transparent 60vh, #f5f5dc);
    background-size: 100% auto, 100% 100%;
    background-attachment: local;
    z-index: -1;
  } */
  
  .btn-openXl {
    width: 50%;
    height: 130px;
    position: absolute;
    top: 280px;
    left: 25%;
  }
  
  .ranking-header {
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: relative;
    top: 180px;
    z-index: 2;
  }
  
  .ranking-image {
    width: 95px;
    height: 114px;
  }
  
  .ranking-image-container {
    position: relative;
    display: inline-block;
  }
  
  .djsz-image {
    position: absolute;
    bottom: 22px;
    right: -12px;
    width: 30px;
    height: 30px;
  }
  
  .heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
  }
  
  @keyframes heartbeat {
    0% {
      transform: scale(1);
    }
  
    50% {
      transform: scale(1.2);
    }
  
    100% {
      transform: scale(1);
    }
  }
  
  .dhkImg-image {
    height: 70px;
    width: 150px;
    position: relative;
    top: 20px;
    background-image: url('../../assets/icon/dhk.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    color: #783920;
    font-weight: bold;
  }
  
  /* 分享区域样式 */
  .share-section {
    position: relative;
    top: 140px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
    margin-top: 50px;
  }
  
  .share-content {
    width: 100%;
    border-radius: 25px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    font-weight: bolder;
    font-size: 35px;
  }
  
  .share-text {
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
  }
  
  .share-button {
    width: 250px;
    height: 70px;
    line-height: 60px;
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
  }
  
  /* 排行榜标题 */
  .ranking-title {
    height: 65px;
    line-height: 80px;
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
  }
  
  /* 排行榜列表 */
  .ranking-list {
    position: relative;
    top: 90%;
    height: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    margin-bottom: 50px;
    overflow-y: scroll;
  }
  
  .ranking-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
    z-index: 9999;
  }
  
  .ranking-item {
    /* background: #fce3c5; */
    width: 91%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  .ranking-item:first-child{
    box-shadow: none;
  }
  
  .ranking-left {
    display: flex;
    align-items: center;
  }
  
  .rank-badge {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }
  
  .rank-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    border: 2px solid #FF8C00;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
  }
  
  .player-name {
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 2px;
  }
  
  .ranking-center-line {
    width: 2px;
    height: 55px;
    background-color: #e8835b;
    line-height: 10px;
  }
  
  .player-rank {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    border: #e26133 3px solid;
    color: #e26133;
    font-size: 10px;
  }
  
  .rank-image {
    width: 30px;
    object-fit: contain;
  }
  
  .player-progress {
    font-size: 8px;
    color: #fff;
    font-size: 11px;
    text-shadow: 1px 1px 2px d75219;
  }
  
  .ranking-right {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .items-container {
    display: flex;
    max-width: 200px;
    justify-content: flex-end;
  }
  
  .item-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFDAB9 100%);
    border: 2px solid #DEB887;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .item-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .item-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #8B4513;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 3px;
    display: none;
  }
  
  .item-circle:hover .item-name {
    display: block;
  }
  
  /* 排行榜中的行李样式 - 模仿PackageModal样式 */
  .package-item-ranking {
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 3px;
  }
  
  .package-item-icon-ranking {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .package-item-img-ranking {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .package-item-text-ranking {
    font-size: 12px;
    color: #333;
    text-align: center;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 1px 3px;
    border-radius: 3px;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* 响应式设计 */
  @media (max-width: 480px) {
    .ranking-item {
      gap: 10px;
      align-items: flex-start;
    }
  
    .ranking-right {
      width: 100%;
      justify-content: center;
    }
  
    .items-container {
      max-width: none;
      justify-content: center;
    }
  
    .share-section {
      top: 145px;
    }
  
    .ranking-title {
      top: 140px;
    }
  
    .ranking-list {
      top: 140px;
    }
  
    .package-item-text-ranking {
      font-size: 10px;
      bottom: -12px;
    }
  }
  
  /* @media (max-width: 800px) {
    .ranking-header {
      top: 480px;
    }
  
    .ranking-image {
      width: 130px;
      height: 150px;
    }
  
    .dhkImg-image {
      background-size: 100% 100%;
      height: 90px;
      width: 190px;
      font-size: 15px;
    }
  
    .btn-openXl {
      top: 50%;
      height: 220px;
    }
    .share-section{
      position: relative;
      top: 300px;
    }
  
  } */
  
  /* 针对820宽度的特殊设置 */
  @media (max-width: 820px) and (min-width: 801px) {
    .ranking-image {
      width: 130px;
      height: 150px;
    }
      .share-section{
      position: relative;
      top: 600px;
    }
    .share-button{
          width: 320px;
      height: 80px;
    }
    .share-content{
      width: 60%;
      font-size: 25px;
    }
    .ranking-list{
          top: 50%;
          width: 60%;
          left: 20%
    }
    .ranking-right{
          justify-content: space-around;
    }
    .ranking-header{
      top: 450px;
    }
    .dhkImg-image{
      background-size: 100% 100%;
      height: 100px;
      width: 200px;
      font-size:18px;
    }
    .btn-openXl{
          top: 580px;
          height: 260px;
    }
  }

  /* 针对412*915宽度的特殊设置 */
  @media (max-width: 415px) and (min-width: 410px) and (max-height: 920px) and (min-height: 910px) {
    .text-btn-rangk-s{
      width: 190px;
      height: 65px;
      left: 26%;
      bottom: 105px;
      line-height: 60px;
    }
  }

  /* 针对430*932宽度的特殊设置 */
  @media (max-width: 435px) and (min-width: 425px) and (max-height: 940px) and (min-height: 925px) {
    .text-btn-rangk-s{
      width: 200px;
      height: 65px;
      line-height: 60px;
      left: 26%;
      bottom: 135px;
    }
  }

  /* 针对390*844宽度的特殊设置 */
  @media (max-width: 395px) and (min-width: 385px) and (max-height: 850px) and (min-height: 840px) {
    .text-btn-rangk-s{
      bottom: 55px;
    }
  }